import Dep, { pushTarget } from './dep'

class Watcher {
  constructor () {
    this.get()
  }

  get () {
    pushTarget(this)
  }

  addDep (dep) {
    dep.addSub(this)
  }

  update () {
    console.log('更新了')
  }
}

export default Watcher
